<?php
require('config.php');
		$get_num=$_REQUEST['get_num'];
		$yiji_id=$_REQUEST['yiji_id'];
		$erji_id=$_REQUEST['erji_id'];
		if($get_num==1)
		{
			$sql="select goodsName,goodsImg,goodsId,shopPrice from `".$oto."_goods` where `goodsCatId2`='$yiji_id' and goodsStatus='1' and goodsFlag='1' and `isSale`=1 and `isGroup`=0";
		}
		else if($get_num==2)
		{
			$sql="select goodsName,goodsImg,goodsId,shopPrice from `".$oto."_goods` where `goodsCatId2`='$yiji_id' and goodsStatus='1' and goodsFlag='1' and `goodsCatId3`='$erji_id' and `isSale`=1 and `isGroup`=0";
		}
		else if($get_num==3)
		{
			$sql="select goodsName,goodsImg,goodsId,shopPrice from `".$oto."_goods` where `goodsCatId3`='$yiji_id' and goodsStatus='1' and `isSale`=1 and goodsFlag='1' and `isGroup`=0";
		}
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$person_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		echo json_encode($person_info);
?>